.attachmentList {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}

.attachmentItem {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--b3-border-color);

    &.small {
        width: 80px;
        height: 80px;
    }

    &.medium {
        width: 120px;
        height: 120px;
    }

    &.large {
        width: 160px;
        height: 160px;
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
    }

    button {
        position: absolute;
        top: 4px;
        right: 4px;
        padding: 4px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 4px;
        opacity: 0;
        transition: opacity 0.2s;

        &:hover {
            background: rgba(0, 0, 0, 0.7);
        }

        svg {
            width: 14px;
            height: 14px;
            color: white;
        }
    }

    &:hover button {
        opacity: 1;
    }
}

.contextItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--b3-border-color);
    border-radius: 4px;
    background-color: var(--b3-theme-background);
    color: var(--b3-theme-on-background);
    cursor: default;
}

.contextTitle {
    font-weight: bold;
    margin-bottom: 5px;
}

.contextDescription {
    font-size: 12px;
    text-align: center;
}